package day04;

public class Demo09 {
	public static void main(String[] args) {

		int[] arr = { 3, 1, 4, 2, 7, 6, 8, 9 };

		for (int i = 0; i < arr.length - 1; i++) {
			for (int j = i + 1; j < arr.length; j++) {
				if (arr[i] > arr[j]) {
					arr[i] = arr[i] ^ arr[j];
					arr[j] = arr[i] ^ arr[j];
					arr[i] = arr[i] ^ arr[j];
				}
			}
		}

	}
}
